package com.china.produce.controller;

import com.china.produce.service.aware.BeanClassLoaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2022/1/28
 */
@RequestMapping("/aware")
@RestController("test")
public class AwareController {

    @Autowired
    private BeanClassLoaderService beanClassLoaderService;

    public void test(String keys)
    {
        System.out.println("---------");
        System.out.println(keys);
    }


    @GetMapping("/beanLoader")
    public void beanLoader()
    {
        ClassLoader classLoader = beanClassLoaderService.getClassLoader();

        System.out.println(classLoader);
    }
}
